package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties(prefix = "student") //读取配置文件的对象，因为要使用，所以需要加五大类注解
@Component
public class Student {
    private int id;
    private String name;
    private int age;
}
